package com.fcscs.cservice.ws.endpoint;

import org.springframework.ws.server.endpoint.annotation.Endpoint;
import org.springframework.ws.server.endpoint.annotation.PayloadRoot;
import org.springframework.ws.server.endpoint.annotation.RequestPayload;
import org.springframework.ws.server.endpoint.annotation.ResponsePayload;

import com.fcscs.cservice.ws.schema.echoservice.EchoRequest;
import com.fcscs.cservice.ws.schema.echoservice.EchoResponse;

@Endpoint
public class EchoEndpoint {
	@PayloadRoot(localPart = "EchoRequest", namespace = "http://fcscs.com/cservice/ws/schema/echoservice")
	@ResponsePayload
	public EchoResponse echoProgress(@RequestPayload EchoRequest req){
		EchoResponse echoResponse = new EchoResponse();
		echoResponse.setHireDate("Hi " );
		echoResponse.setName("Hi " );
		echoResponse.setId("Hi " );
		
		return echoResponse;
		
		
	}
}
